﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Models;
using DAL;

namespace BLL
{
   public class OrdersManage
    {
        //新增
        public static bool AddOrders(Orders or)
        {
            return OrdersService.AddOrders(or);
        }

        //新增全部
        public static bool AddAllOrders(Orders or)
        {
            return OrdersService.AddAllOrders(or);
        }

        //删除
        public static bool DeleOrders(int id)
        {
            return OrdersService.DeleOrders(id);
        }
        //删除指定游戏Id内容
        public static bool DeleGmIdOrders(int id)
        {
            return OrdersService.DeleGmIdOrders(id);
        }
        //删除指定用户订单
        public static bool DeleUsidOrders(int id)
        {
            return OrdersService.DeleUsidOrders(id);
        }
        //修改指定全部内容
        public static bool UpdaOrders(Orders or)
        {
            return OrdersService.UpdaOrders(or);
        }
        //查询所有信息
        public static List<Orders> SeleAllOrders()
        {
            return OrdersService.SeleAllOrders();
        }
        //查指定定id信息
        public static List<Orders> SeleIdOrders(int id)
        {
            return OrdersService.SeleIdOrders(id);
        }
        //查指定用户id信息
        public static List<Orders> SeleUsIdOrders(int id)
        {
            return OrdersService.SeleUsIdOrders(id);
        }
        //查询用户下载的游戏
        public static List<Orders> SeleUsGmOrders(int usid, int gmid)
        {
            return OrdersService.SeleUsGmOrders(usid,gmid);
        }
        //根据用户名查询
        public static List<Orders> SeleLikeUsNameOrders(string name)
        {
            return OrdersService.SeleLikeUsNameOrders(name);
        }
    }
}
